package com.zhuangxiaoyan.springboot.mybatis.service;

import com.zhuangxiaoyan.springboot.mybatis.domain.Product;

import java.util.List;

/**
 * @author xjl
 * @description 针对表【Product(商品表)】的数据库操作Service
 * @createDate 2025-01-11 18:22:55
 */
public interface ProductService {

    int addProduct(Product product);

    int updateProduct(Product product);

    int removeProduct(long id);

    Product getProductById(long id);

    List<Product> getAllProducts();
}
